import type { BasicFetchResult } from './baseModel';

export interface HostpotPage {
  id: number;
  // 创建时间
  createTime: string;
  // 更新时间
  updateTime: string;
  // 点赞
  star: number;
  // 分享
  share: number;
  // 社区id
  community_id: number;
  // 内容
  content: string;
  // 话题id
  topic_id: number;
  // 用户id
  user_id: number;
  // 状态
  state: number;
  //
  recommend: number;
  // 图片
  img: string;
  // 用户名
  user_name: string;
  user_icon: string;
  // 话题名称
  topic_name: string;
  // 社区名称
  community_name: string;
}

export type HostpotPageListModel = BasicFetchResult<HostpotPage>;

export type HostpotInfoMobel = HostpotPage;

export interface Hotspot_topicRecordList {
  cover: string;
  brief: string;
  createTime: string;
  star: string;
  comment_count: string;
  id: number;
}
export type HostpotListModel = Hotspot_topicRecordList[];

export interface HostpotListParams {
  choiceness: number;
}

export interface HostpotPageListParams {
  community_id?: number | string;
  topic_id?: number | string;
  page: number;
  size: number;
}
